import httpInstance from "@/utils/http";
// 获取二级分类列表
export const getCategory = (id) => {
  return httpInstance.get('/category',{
    params:{
      
      id
    }
  })
}

export const getSubCategory = (id) => {
  return httpInstance.get('/category/sub/filter',{
    params:{
      id
    }
  })
}

// 获取二级导航对应的商品数据列表
export const getSubCategoryGoods = (data) => {
  return httpInstance.post('/category/goods/temporary',data)
}
